package com.lwei.ljpro.dao;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

public interface IBaseDao<T> {

    T findOneById(String key, Long id);

    Boolean saveById(String key, Long id, T t);

    Long save(String key, T t);

    T update(String key, Long id, T t);

    void delete(String key, Long id) throws NullPointerException;

    List<T> listEntryAll(String key);
}
